<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>网上跳蚤市场 - 欢迎您</title>
    <link rel="stylesheet" th:href="@{/css/style.css}" />
    <style>
        .welcome-container {
            max-width: 800px;
            margin: 50px auto;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            padding: 40px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .welcome-title {
            color: #337ecc;
            font-size: 2.5rem;
            margin-bottom: 30px;
            font-weight: 700;
        }

        .welcome-text {
            color: #444;
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 30px;
        }

        .feature-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin: 40px 0;
        }

        .feature-box {
            width: 200px;
            padding: 25px;
            margin: 10px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .feature-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #409EFF;
        }

        .feature-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }

        .feature-desc {
            font-size: 0.9rem;
            color: #666;
        }

        .login-btn {
            display: inline-block;
            padding: 14px 50px;
            background-color: #409EFF;
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 30px;
            margin-top: 20px;
            text-decoration: none;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .login-btn:hover {
            background-color: #337ecc;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(64, 158, 255, 0.4);
        }

        .animation-fade-in {
            animation: fadeIn 1s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 768px) {
            .welcome-container {
                margin: 20px;
                padding: 20px;
            }

            .feature-container {
                flex-direction: column;
                align-items: center;
            }

            .welcome-title {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body class="welcome-page">
<div class="container">
    <div class="welcome-container animation-fade-in">
        <h1 class="welcome-title">欢迎来到网上跳蚤市场</h1>
        <p class="welcome-text">
            我们提供便捷、安全的二手物品交易平台，让闲置资源焕发新生，让您的购物更加经济实惠。
            无论您是想出售闲置物品，还是寻找心仪的二手商品，我们的平台都能满足您的需求。
        </p>

        <div class="feature-container">
            <div class="feature-box">
                <div class="feature-icon">🛒</div>
                <h3 class="feature-title">便捷购物</h3>
                <p class="feature-desc">浏览多种分类商品，一键加入购物车，轻松完成交易</p>
            </div>
            <div class="feature-box">
                <div class="feature-icon">📱</div>
                <h3 class="feature-title">发布商品</h3>
                <p class="feature-desc">简单几步，将您的闲置物品发布到平台，迅速找到新主人</p>
            </div>
            <div class="feature-box">
                <div class="feature-icon">⭐</div>
                <h3 class="feature-title">信用评价</h3>
                <p class="feature-desc">完善的评价系统，保障交易双方权益，打造信任平台</p>
            </div>
        </div>

        <a href="/login" class="login-btn">立即开始</a>

        <p class="welcome-text" style="margin-top: 40px; font-size: 0.9rem; color: #777;">
            本系统为课设实验，目的是帮助大家交换购买闲置物品，循环利用。
        </p>
    </div>
</div>
</body>
</html> 